package com.sziit.se.highconcurrency.order.application.mapper;

import com.sziit.se.highconcurrency.order.application.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dongchunkeng
 * @since 2022-11-09
 */
public interface OrderMapper extends BaseMapper<Order> {
    List<Order> getAllData();

    Boolean insertOrder(
            @Param("orderId") String orderId,
            @Param("userId") String userId
    );

    Order getOneData(@Param("orderId") String orderId);
}
